import ajax from '../utils/request'
// import { getUser } from '../utils/storage'
//  登录
export function login (params) {
  return ajax.post('/mp/v1_0/authorizations', params)
}
//  用户信息
export function getuserinfo () {
//   const userInfo = getUser()
  return ajax({
    method: 'GET',
    url: '/mp/v1_0/user/profile'
    // headers: {
    //   Authorization: `Bearer ${userInfo.token}`
    // }
  })
}
//  文字列表
export function getArticles (queryObj) {
  return ajax.get('/mp/v1_0/articles', queryObj)
}